package com.heima.demo;

public class MyThread {
    public static void main(String[] args) {
        A a = new A();
        Thread t =new Thread(a);
        t.start();
    }
}
class A implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
            
        }
    }
}
